package com.xiaoming.dao;

import com.xiaoming.entity.Code;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CodeRepository extends JpaRepository<Code, Integer> {
    List<Code> findByEmailAndCodeOrderByExpiretimeDesc(String email, String code);
}
